<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld" %>
<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh-cn">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
    <!-- Bootstrap core CSS -->
    <link href="<%=path%>/css/smoothness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
    <link href="<%=path%>/css/main.css" rel="stylesheet">
    <script src="<%=path%>/js/jquery-1.10.2.js"></script>
    <script src="<%=path%>/js/jquery-ui-1.10.4.custom.min.js"></script>
      <style>
  #draggable, #draggable2 { width: 700px; height: 300px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
  </style>
  <script>
  $(function() {
    $( "#draggable" ).draggable({ scroll: true });
    $( "#draggable2" ).draggable({ scroll: true, scrollSensitivity: 100 });
  });
  </script>
  </head>
  <body> 
        <div id="draggable" class="ui-widget-content">
          <table width="100%">
              <tr>
                  <td align="left"><big><b>最新通知</b></big></td>
                  
              </tr>
              <logic:empty name="noticeList">
              <tr>
                  <td>当前没有相关的通知内容！</td>
              </tr>
              </logic:empty>
              <logic:notEmpty name="noticeList">
              <logic:iterate id="notice"  name="noticeList">
              <tr>
                  <td>
                     <a href="#"><bean:write name="notice" property="notice_title"/></a><br><br>
                  </td>
              </tr>
              </logic:iterate>
              </logic:notEmpty>
          </table>
        </div>

        <div id="draggable2" class="ui-widget-content">
          <table width="100%">
              <tr>
                  <td align="left"><big><b>等待处理任务</b></big></td>
                  <td align="right"></td>
              </tr>
              <logic:empty name="taskList">
              <tr>
                  <td colspan="2">当前没有相关的任务事项！</td>
              </tr>
              </logic:empty>
              <logic:notEmpty name="taskList">
              <logic:iterate id="task"  name="taskList">
              <tr>
                  <td colspan="2">
                     <a href="#"><bean:write name="task" property="task_title"/></a><br><br>
                  </td>
              </tr>
              </logic:iterate>
              </logic:notEmpty>
          </table>
        </div>

        <div style="height: 700px; width: 1px;"></div>
  </body>
</html>